package com.ishare.common.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author 李嘉宾
 * @since 1.0.0
 */
@Component
public class EnvUtils {

    @Value("${spring.profiles.active}")
    private static String profile;


    public static boolean isProd() {
        if ("prod".equals(profile)) {
            return true;
        } else {
            return false;
        }
    }

}
